-
Notifications
You must be signed in to change notification settings - Fork 853
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
solution #473
base: master
Are you sure you want to change the base?
solution #473
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice job! )
accounts/urls.py
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to create an app here, you have urls from django.contrib.auth.urls (taxi_service/urls.py 25th line)
@@ -22,4 +22,5 @@ | |||
urlpatterns = [ | |||
path("admin/", admin.site.urls), | |||
path("", include("taxi.urls", namespace="taxi")), | |||
path("accounts/", include("django.contrib.auth.urls")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it was about whole accounts app
you have login/logout urls from django.contrib.auth.urls, haven't you?
taxi_service/urls.py
Outdated
@@ -22,4 +22,5 @@ | |||
urlpatterns = [ | |||
path("admin/", admin.site.urls), | |||
path("", include("taxi.urls", namespace="taxi")), | |||
path("", include("django.contrib.auth.urls")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line includes Django's built-in authentication URLs (like login, logout, password change, etc.)
You can also have path("accounts/", include("django.contrib.auth.urls"))
here
But again, why do you need accounts app here, if you have all urls in this file? You can remove accounts app
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great! 🌷
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job 🥇
No description provided.